package com.ssit.answer.domain.${packageDir};

import com.ssit.answer.dto.BaseObject;

/**
* 描述:<br/>
* ${comment!""} 领域模型，映射数据库表:${tableName!""}
*
* @author ${author} ${.now?string("yyyy年MM月dd日")}
*/
public class ${className} extends BaseObject {
    private static final long serialVersionUID = 1L;
<#list columns as column>
    <#if column.columnName!=primaryKey && !column.columnName?contains("create_user") && !column.columnName?contains("create_time") && !column.columnName?contains("update_user") && !column.columnName?contains("update_time") && !column.columnName?contains("delete_flag")>
        <#assign autograph = "private " + column.propertyType + " " + column.propertyName + " ;">
    /** ${column.columnComment} **/
    ${autograph}
    </#if>
</#list>

<#list columns as column>
    <#if column.columnName!=primaryKey && !column.columnName?contains("create_user_id") && !column.columnName?contains("create_time") && !column.columnName?contains("update_user_id") && !column.columnName?contains("update_time") && !column.columnName?contains("delete_flag")>
    public ${column.propertyType} get${column.propertyName?cap_first} (){
        return this.${column.propertyName} ;
    }

    public ${className} set${column.propertyName?cap_first} (${column.propertyType} ${column.propertyName}){
        this.${column.propertyName} = ${column.propertyName} ;
        return this;
    }
    </#if>
</#list>

	public static ${className} new${className}(){
		return new ${className}();
	}
}